<template>
    <template v-if="agreementType === 'user'">
        <UserAgreement />
    </template>
    <template v-else>
        <privacyAgreement />
    </template>
</template>

<script lang="ts" setup>
// 引入协议组件
import UserAgreement from './userAgreement.vue'
import privacyAgreement from './privacyAgreement.vue'
// useRouter 钩子
import { useRouter } from '@tarojs/taro'
const router = useRouter()
const { agreementType } = router.params
</script>

<style lang="less"></style>
